from autoTest_BRTC_API.core.orderApiUtils import orderapiutils
from autoTest_BRTC_API.utils.readFile import read_yaml
from autoTest_BRTC_API.utils.writeFile import write_yaml

headers = read_yaml('common.yaml')['headers']

class OrderAPI():
    def createOrder_api(self, req, params):
        ### 发送请求，并接收接口返回的数据
        res = orderapiutils.createOrder_util(req, headers=headers, json=params)
        return res


#实例化OrderAPI()
orderapi=OrderAPI()